[@com.header _title="${table.comment}"]
<link rel="stylesheet" href="${"$"}{base}/res/components/bootstrapvalidator/dist/css/bootstrapValidator.css"/>
[/@com.header]
[@com.body]
<section class="content container-fluid">
    <div class="box box-info">
        <form class="form-horizontal" action="save" l-bv onsubmit="return false">
            <input type="hidden" name="id" value="${"$"}{entity.id}" />
            <div class="box-header with-border">
                <button type="submit" class="btn btn-info"><i class="fa fa-save"></i> 保存</button>
                <a href="index" class="btn btn-default"><i class="fa fa-undo"></i> 返回</a>
            </div>
            <div class="box-body">
                <#list table.fields as field>
                <#if !field.fill??>
                <div class="form-group">
                    <label class="col-sm-2 control-label">${field.comment}</label>
                    <div class="col-sm-6">
                        <#switch field.propertyType>
                        <#case "Long">
                        <#case "Integer">
                        <input class="form-control" name="${field.propertyName}" placeholder="请输入${field.comment}" type="number"
                            required value="${"$"}{entity.${field.propertyName}?html}"/>
                        <#break>
                        <#default>
                        <input class="form-control" name="${field.propertyName}" placeholder="请输入${field.comment}" type="text"
                            required value="${"$"}{entity.${field.propertyName}?html}"/>
                        </#switch>
                    </div>
                </div>
                </#if>
                </#list>
            </div>
        </form>
    </div>
</section>
[/@com.body]
<script type="text/javascript" src="${"$"}{base}/res/components/bootstrapvalidator/dist/js/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="${"$"}{base}/res/components/bootstrapvalidator/dist/js/language/zh_CN.js"></script>
